package com.example.springbootdemo09.mapper;

import com.example.springbootdemo09.domain.Student;
import com.example.springbootdemo09.query.StudentQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {
    //添加
    void  add(Student student);
    //查询所有
    List<Student> findAll();
    //查询单个
    Student findOne(Long id);
    //修改
    void  updete(Student student);
    //删除
    void  delete(Long id);
    //获取总条数
    Integer getCont(StudentQuery goodsQuery);
    //查询页面当前分页数据
    List<Student> getData(StudentQuery goodsQuery);
//    批量删除
    void pathDele(Long[] id);
}
